﻿using System;
using SimpleIoC.Dominio.Interfases;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;

namespace SimpleIoC.Dominio.Servicio
{
    public class LoggerServicio:ILogger
    {
        public void Write(string mensaje)
        {
            var miPagina = HttpContext.Current.Handler as Page;
            if (miPagina != null)
                miPagina.Controls.Add(new Label { Text = mensaje, ForeColor = Color.Blue });
        }
    }
}
